package com.action.setting;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.pojo.basic.SALM;
import com.service.basic.ISALMService;

public class SALMAction extends ActionSupport {
	
	private static final long serialVersionUID = 1L;
	private ISALMService salmService;
	private List<SALM> listSalm;

	public List<SALM> getListSalm() {
		return listSalm;
	}

	public void setListSalm(List<SALM> listSalm) {
		this.listSalm = listSalm;
	}

	public void setSalmService(ISALMService salmService) {
		this.salmService = salmService;
	}
	
	public String initModulePermissionData(){
		List<SALM> salms = salmService.findAllSALM();
		if(salms == null || salms.size() == 0){
			return "uninit";
		}
		this.setListSalm(salms);
		return SUCCESS;
	}
}
